import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    username: "",
    admin: false
  },
  getters: {
  },
  mutations: {
    setUsername(state, n) {
      state.username = n
    },
    setIsAdmin(state, n) {
      state.admin = n
    }
  },
  actions: {
  },
  modules: {
  }
})
